<!DOCTYPE html>
<html lang="en">

	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width" />
		<meta name="renderer" content="webkit">
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<title>菜单管理</title>
		<link rel="stylesheet" href="../../../assets/bootstrap/3.3.7/css/bootstrap.min.css">
		<link rel="stylesheet" href="../../../assets/bootstrap-table/bootstrap-table.min.css">
		<link rel="stylesheet" href="../../../assets/bootstrap-validator/css/bootstrapValidator.min.css" />
		<link rel="stylesheet" href="../../../assets/sco/css/sco.message.css" />
		<link rel="stylesheet" href="../../../assets/font-awesome/4.7/css/font-awesome.min.css">
		<link rel="stylesheet" href="../../../assets/font-awesome/3.2.1/css/font-awesome.min.css">
		<link rel="stylesheet" href="../../../assets/css/style.css">
		<link rel="stylesheet" href="../../../assets/bootstrap-fileinput-master/css/fileinput.min.css" />

	</head>

	<body>
		<div class="container-fluid" id="dishGridView">
			<div class="row">
				<div class="col-sm-12">
					<div id="toolbar" class="btn-group">
						<button type="button" class="btn btn-default btn-sm" data-bind="click:fnAdd">
						<i class="fa fa-plus fa-lg" aria-hidden="true"></i>&nbsp;&nbsp;新增
					</button>
						<button type="button" class="btn btn-default btn-sm" data-bind="click:fnRemove">
						<i class="fa fa-times fa-lg" aria-hidden="true"></i>&nbsp;&nbsp;删除
					</button>
						<button type="button" class="btn btn-default btn-sm" data-bind="click:fnEdit">
						<i class="fa fa-pencil-square-o fa-lg" aria-hidden="true"></i>&nbsp;&nbsp;编辑
					</button>
						<button type="button" class="btn btn-default btn-sm" disabled="disabled">
						<i class="fa fa-file-text fa-lg" aria-hidden="true"></i>&nbsp;&nbsp;查看
					</button>
						<div class="btn-group">
							<button type="button" class="btn btn-default btn-sm">其他功能</button>
							<button type="button" class="btn btn-default btn-sm dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
							<span class="caret"></span> <span class="sr-only">Toggle
								Dropdown</span>
						</button>
							<ul class="dropdown-menu">
								<li>
									<a href="javascript:void(0)" data-bind="click:fnTC"><span class="glyphicon glyphicon-cutlery" aria-hidden="true"></span> &nbsp;&nbsp;套餐配置 </a>
								</li>
								<li>
									<a href="javascript:void(0)" data-bind="click:fnZK">
										<span class="glyphicon glyphicon-usd" aria-hidden="true"></span>&nbsp;&nbsp;&nbsp;折扣控制
									</a>
								</li>
								<li>
									<a href="javascript:void(0)" data-bind="click:fnFL">
										<span class="glyphicon glyphicon-tasks" aria-hidden="true"></span>&nbsp;&nbsp;&nbsp;分类维护
									</a>
								</li>
							</ul>
						</div>
					</div>
				</div>
			</div>
			<div class="row">
				<div class="col-sm-12">
					<table id="tb_dishes"></table>
				</div>
			</div>
		</div>
		<!--新增菜品方式维护-->
		<div class="modal fade" id="myDishAdd" tabindex="-1" role="dialog" aria-labelledby="gridSystemModalLabel">
			<div class="modal-dialog" role="document">
				<div class="modal-content">
					<div class="modal-header">
						<button type="button" class="btn btn-default" data-dismiss="modal" data-bind="click:funAdd">保存</button>
						<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
					</div>
					<div class="modal-body">
						<form class="form-horizontal" id="detailForm" autocomplete="off">
							<div class="form-group" style="display: none;">
								<label for="userPwd" class="col-sm-3 control-label">商品id:</label>
								<div class="col-sm-8">
									<input type="text" id="goods_id" class="form-control" name="goods_id" placeholder="*,必填" data-bind="value:uv_goodsId">
								</div>
							</div>
							<div class="form-group" style="display: none;">
								<label for="userPwd" class="col-sm-3 control-label">店铺id:</label>
								<div class="col-sm-8">
									<input type="text" id="shop_id" class="form-control" name="shop_id" placeholder="*,必填" data-bind="value:uv_shopId">
								</div>
							</div>
							<div class="form-group">
								<label for="userPwd" class="col-sm-3 control-label">菜品名称:</label>
								<div class="col-sm-8">
									<input type="text" id="goods_name" class="form-control" name="goods_name" placeholder="*,必填" data-bind="value:uv_dishName">
								</div>
							</div>
							<div class="form-group">
								<label for="userPwd" class="col-sm-3 control-label">商品分类:</label>
								<div class="col-sm-8">
									<!-- 									<input type="text" id="goods_class" class="form-control" name="goods_class" placeholder="*,必填" data-bind="value:uv_dishClass"> -->
									<select class="form-control" id="goods_class" name="goods_class" data-bind="options:dish_options,value:dishTypeSelected,optionsValue:'code_id', optionsText: 'code_text'"></select>
								</div>
							</div>
							<div class="form-group">
								<label for="userPwd" class="col-sm-3 control-label">商品价格:</label>
								<div class="col-sm-8">
									<input type="text" id="goods_price" class="form-control" name="goods_price" placeholder="*,必填" data-bind="value:uv_dishPrice">
								</div>
							</div>
							<div class="form-group ">
								<label for="userPwd " class="col-sm-3 control-label ">商品信息:</label>
								<div class="col-sm-8 ">
									<input type="text " id="goods_info" class="form-control " name="goods_info " placeholder="*,必填 " data-bind="value:uv_dishInfo">
								</div>
							</div>
							<div class="form-group">
								<label for="userPwd" class="col-sm-3 control-label">商品图片:</label>
								<div class="col-sm-8">
									<input id="uv_dishPic" type="file" name="files" multiple class="file-loading" data-bind="value:uv_dishPic">
								</div>
							</div>
						</form>
					</div>
				</div>
			</div>
		</div>
		<!--修改菜品维护-->
		<div class="modal fade" id="myDishModify" tabindex="-1" role="dialog" aria-labelledby="gridSystemModalLabel">
			<div class="modal-dialog" role="document">
				<div class="modal-content">
					<div class="modal-header">
						<button type="button" class="btn btn-default" data-dismiss="modal" data-bind="click:funModify">保存</button>
						<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
					</div>
					<div class="modal-body">
						<form class="form-horizontal" id="detailForm" autocomplete="off">
							<div class="form-group" style="display: none;">
								<label for="userPwd" class="col-sm-3 control-label">商品id:</label>
								<div class="col-sm-8">
									<input type="text" id="goods_id" class="form-control" name="goods_id" placeholder="*,必填" data-bind="value:uv_goodsId">
								</div>
							</div>
							<div class="form-group" style="display: none;">
								<label for="userPwd" class="col-sm-3 control-label">店铺id:</label>
								<div class="col-sm-8">
									<input type="text" id="shop_id" class="form-control" name="shop_id" placeholder="*,必填" data-bind="value:uv_shopId">
								</div>
							</div>
							<div class="form-group">
								<label for="userPwd" class="col-sm-3 control-label">菜品名称:</label>
								<div class="col-sm-8">
									<input type="text" id="goods_name" class="form-control" name="goods_name" placeholder="*,必填" data-bind="value:uv_dishName">
								</div>
							</div>
							<div class="form-group">
								<label for="userPwd" class="col-sm-3 control-label">商品分类:</label>
								<div class="col-sm-8">
									<!-- 									<input type="text" id="goods_class" class="form-control" name="goods_class" placeholder="*,必填" data-bind="value:uv_dishClass"> -->
									<select class="form-control" id="goods_class" name="goods_class" data-bind="options:dish_options,value:dishTypeSelected,optionsValue:'code_id', optionsText: 'code_text'"></select>
								</div>
							</div>
							<div class="form-group">
								<label for="userPwd" class="col-sm-3 control-label">商品价格:</label>
								<div class="col-sm-8">
									<input type="text" id="goods_price" class="form-control" name="goods_price" placeholder="*,必填" data-bind="value:uv_dishPrice">
								</div>
							</div>
							<div class="form-group ">
								<label for="userPwd " class="col-sm-3 control-label ">商品信息:</label>
								<div class="col-sm-8 ">
									<input type="text " id="goods_info" class="form-control " name="goods_info " placeholder="*,必填 " data-bind="value:uv_dishInfo">
								</div>
							</div>
							<div class="form-group">
								<label for="userPwd" class="col-sm-3 control-label">商品图片:</label>
								<div class="col-sm-8">
									<input id="uv_dishModifyPic" type="file" name="files" multiple class="file-loading" data-bind="value:uv_dishPic">
								</div>
							</div>
						</form>
					</div>
				</div>
			</div>
		</div>

		<script src="../../../assets/jquery/1.11.1/jquery.min.js"></script>
		<script src="../../../assets/jquery/bootbox.min.js"></script>
		<script src="../../../assets/js/core/ajaxSetup.js"></script>
		<script src="../../../assets/jquery/json2.js"></script>
		<script src="../../../assets/jquery/jquery.cookie.js"></script>
		<script src="../../../assets/bootstrap/3.3.7/js/bootstrap.min.js"></script>
		<script src="../../../assets/bootstrap-table/bootstrap-table.min.js"></script>
		<script src="../../../assets/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script>
		<script src="../../../assets/theme/ace/js/moment.min.js"></script>
		<!-- 表单验证 -->
		<script src="../../../assets/bootstrap-validator/js/bootstrapValidator.min.js"></script>
		<script src="../../../assets/knockout/knockout.js"></script>
		<!-- 加密引用 -->
		<script src="../../../assets/CryptoJS/rollups/aes.js"></script>
		<script src="../../../assets/sco/js/sco.message.js"></script>
		<script src="../../../assets/CryptoJS/components/mode-ecb.js"></script>
		<!-- 自定义 script -->
		<script src="../../../assets/js/core/dictionary.js "></script>
		<script src="../../../assets/js/core/platform.common.js "></script>
		<script src="main.js "></script>
		<!--上传文件-->
		<script src="../../../assets/bootstrap-fileinput-master/js/fileinput.min.js"></script>
		<script src="../../../assets/bootstrap-fileinput-master/js/locales/zh.js"></script>
	</body>

</html>